package com.huayi.datagovernance.common;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 枚举了一些常用API操作码
 * @author wuch
 * @version 1.0
 * @date 2020/9/4 15:28
 */
@AllArgsConstructor
@Getter
public enum  ResultCode {

    /*响应码*/
    SUCCESS(200, "响应成功"),
    FAILED(500, "服务异常"),
    REST_FAILED(501, "restTemplate请求失败"),
    VALIDATE_FAILED(404, "参数检验失败"),
    UNAUTHORIZED(401, "暂未登录或token已经过期"),
    FORBIDDEN(403, "没有相关权限");
    private int code;
    private String message;

    ResultCode() {
    }
}
